#include "Time.h"


Time::Time(void)
{
	SYSTEMTIME sys;
	GetLocalTime(&sys);

	m_year = sys.wYear;
	m_month = sys.wMonth;
	m_day = sys.wDay;
	m_hour = sys.wHour;
	m_min = sys.wMinute;
	m_sec = sys.wSecond;

}


Time::~Time(void)
{
}


void Time::Display(void)
{
	cout<<m_year<<"-"<<m_month<<"-"<<m_day<<" "<<m_hour<<":"<<m_min<<":"<<m_sec;
}
